package com.ymatou.iapi.notify.testcase;

import com.ymatou.iapi.notify.parameter.CleanOutDateSpeedNotifyBean;
import com.ymatou.iapi.notify.service.CleanOutDateSpeedNotifyCall;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*清理过期批量通知JOB
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_CleanOutDateSpeedNotify{
	private static CleanOutDateSpeedNotifyBean cleanoutdatespeednotifyBean;
	private static CleanOutDateSpeedNotifyCall cleanoutdatespeednotifyCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("清理过期批量通知JOB");
	}

	@Before
	public void caseUp() {
		cleanoutdatespeednotifyBean=new CleanOutDateSpeedNotifyBean();
		cleanoutdatespeednotifyCall=new CleanOutDateSpeedNotifyCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(cleanoutdatespeednotifyCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_CleanOutDateSpeedNotify_01() {
		Logger.start(true,"清理过期批量通知JOB");
		try {
			cleanoutdatespeednotifyBean.setMaxuserid(100000);
			cleanoutdatespeednotifyCall.setData(cleanoutdatespeednotifyBean);
			cleanoutdatespeednotifyCall.callService();			
			
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}